package com.liuzx.controller;

import org.springframework.web.bind.annotation.*;

@RestController("/")
public class BaseController {
    @RequestMapping("")
    public String index() {
        return "Hello World!";
    }

    @RequestMapping("/get")
    public String get() {
        return "Hello World!  这是get请求！！";
    }

    @PostMapping("/post")
    public String post() {
        return "Hello World!  这是post请求！！";
    }

    @PutMapping("/put")
    public String put() {
        return "Hello World!  这是put请求！！";
    }
    @DeleteMapping("/delete")
    public String delete() {
        return "Hello World!  这是delete请求！！";
    }

}
